package com.zxh.dubbozxh.framework;

import java.util.List;
import java.util.Random;

/**
 * 负载均衡策略：轮询，hash，随机
 */
public class LoadBalance {

    public static URL random(List<URL> list){

        Random random = new Random();
        int n = random.nextInt(list.size());
        return list.get(n);

    }

}
